<!DOCTYPE html>
<html class="ui-page-login">

<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>个人中心</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="full-screen" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta name="format-detection" content="telephone=no"/>
    <meta name="format-detection" content="address=no">
    <link href="../../css/mui.css" rel="stylesheet"/>
    <link href="../../css/reset.css" rel="stylesheet"/>
    <link rel="stylesheet" href="../../css/iconfont.css" />
    <link rel="stylesheet" href="../../css/dashi.css" />
    <script src="../../js/jquery.min.js"></script>
    <script type="text/javascript">
        var docEl = document.documentElement;
        var clientWidth = docEl.clientWidth;
        docEl.style.fontSize = (clientWidth / 10) + 'px';
        $(document).ready(function () {
            (function (doc, win) {
                var docEl = doc.documentElement,
                        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                        recalc = function () {
                            var clientWidth = docEl.clientWidth;
                            docEl.style.fontSize = (clientWidth / 10) + 'px';
                        };

                if (!doc.addEventListener) return;
                win.addEventListener(resizeEvt, recalc, false);
                doc.addEventListener('DOMContentLoaded', recalc, false);
            })(document, window);
        });
    </script>
</head>

<body>
<article class="mui-content wode">
    <ul class="mui-table-view no-padding">
        <li class="mui-table-view-cell mui-txlan">
            <a class="mui-navigate-right mui-clearfix img-item-box">
                <span class="pull-right user-img">
                    <img src="../../img/user1.png">
                </span>
            </a>
        </li>
        <li class="mui-table-view-cell">
            <a class="mui-navigate-right" href="../user/user_nickname.html">
                昵称
                <span class="mui-pull-right nickname">d56s4a65ds465a</span>
            </a>
        </li>
        <li class="mui-table-view-cell">
            <a class="mui-navigate-right" href="../user/phone.html">
                手机号
                <span class="mui-pull-right phone">18665467898976</span>
            </a>
        </li>
        <li class="mui-table-view-cell">
            <a class="mui-navigate-right" href="../user/setpassword.html">
             修改密码
            </a>
        </li>
        
    </ul>
    <div class="mui-table-view-cell" style="margin-top: 20px;background-color: white;">
            <a class="mui-navigate-right" href="../user/canjia.html">
                我参加的
            </a>
    </div>
    <div class="tuichu" style=" ">
        <a class="tuichu-go" href="../user/signin.html">
            退出当前账号
        </a>
    </div>
    <div class="file-box">
        <form>
            <input type="file" name="download">
        </form>
    </div>
</article>
<nav class="mui-bar mui-bar-tab">
     <a class="tabyemian-go " href="saishi.html">
     	<span class="iconfont icon-saishi"></span>
     	<span class="tabyyemian-word">赛事</span>
     </a>
      <a class="tabyemian-go " href="zixun.html">
     	<span class="iconfont icon-zixun" ></span>
     	<span class="tabyyemian-word">资讯</span>
     </a>
      <a class="tabyemian-go " href="index.html">
     	<span class="iconfont icon-dashibei"></span>
     	<span class="tabyyemian-word">主办方</span>
     </a>
      <a class="tabyemian-go tab-active" href="#">
     	<span class="iconfont icon-wode"></span>
     	<span class="tabyyemian-word">我的</span>
     </a>
</nav>
<script src="../../js/jquery-2.1.1.min.js"></script>
<script src="../../js/mui.min.js"></script>
<script src="../../js/main.js"></script>
<script src="../../js/user.js"></script>
<script>
    $(document).ready(function(){
        var user =   getUserInfo();
        var user_token = user.user_token;
        console.log(user.avatar_url);
        var event = {
            getUser: function () {
                var data = {
                    apiCode: '/User/userInfo',
                    user_token:user_token
                };
                http(data, function (responed) {
                  var  goodinfo = responed.data;
                    if(responed.success==1){
                        $('.nickname').text(goodinfo.user_name);
                        $('.phone').text(goodinfo.phone);
                        $('.user-img img').attr('src',user.avatar_url);
                    }else{
                        mui.toast(responed.msg);
                    }
                });
            },
        }
        event.getUser();
    })
</script>

</body>

</html>
